package com.msmall.community.klg.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.msmall.base.model.BaseObject;

/**
 * 文章与分类 中间表
 * @author Administrator
 *
 */
@Entity
@Table(name="klg_segment_article")
public class SegmentArticle extends BaseObject{
	
	private static final long serialVersionUID = 200732482953933198L;

	@Id
	@Column(name="joint_id")
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Long jointid;
	
	@Column(name="segment_id")
	private Long segmentid;
	
	@Column(name="article_id")
	private Long articleid;

	public Long getJointid() {
		return jointid;
	}

	public void setJointid(Long jointid) {
		this.jointid = jointid;
	}

	public Long getSegmentid() {
		return segmentid;
	}

	public void setSegmentid(Long segmentid) {
		this.segmentid = segmentid;
	}

	public Long getArticleid() {
		return articleid;
	}

	public void setArticleid(Long articleid) {
		this.articleid = articleid;
	}

	@Override
	public boolean equals(Object o) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public int hashCode() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return null;
	}

}

